package modele.entites;

import java.util.ArrayList;

import modele.Couple;

public class Feu extends MapEntite {
	
	private static final long serialVersionUID = 1L;
	private boolean etat;
	private boolean feuEnExtinction = false;
	private Orientation orientation;
	private int intensite;

	public Feu(Orientation pOrientation, int pIntensite) {
		this.orientation = pOrientation;
		this.intensite   = pIntensite;
		this.etat = true;
	} 


	public void propagation() {
		switch (this.orientation) {
		case OUEST:

			break;
		case EST:

			break;
		case NORD:

			break;
		case SUD:

			break;
		case AUCUNE:
		default:
			// le reste
			break;
		}
	}

	public int getIntensite() {
		return intensite;
	}

	public void decrementerIntensite() {
		this.intensite--;
		this.feuEnExtinction = true;
	}
	
	public void incrementerIntensite(){
		this.intensite++;
	}
	
	public boolean isFeuEteint(){
		return this.etat == false; // false : eteind, true : allume
	}	

	public void setEtat(boolean etatEntite) {
		this.etat = etatEntite;
	}

	public boolean isFeuEnExtinction(){
		return this.feuEnExtinction;
	}

	
	public void setFeuEnExtinction(boolean bool) {
		this.feuEnExtinction = bool;
	}

	@Override
	public void miseAJour() {
	//	this.propagation();
		
	}
	
	public boolean getEtat() {
		return etat;
	}

}